package com.example.service.impl;

import com.example.dao.OrdersDao;
import com.example.entity.Orders;
import com.example.service.OrdersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
@Service
public class OrdersServiceimpl implements OrdersService{
    @Resource
    OrdersDao ordersDao;

    @Override
    public ArrayList<Orders> queryAll() { return ordersDao.queryAll(); }

    @Override
    public int deleteByID(Integer id) { return ordersDao.deleteById(id); }

    @Override
    public Orders findById(Integer id) { return ordersDao.findById(id); }

    @Override
    public int update(Orders orders) { return ordersDao.update(orders); }

    @Override
    public int insert(Orders orders) {
        return ordersDao.insert(orders);
    }

}
